Optimal. Leaf size=61 \[ \frac {2 \sqrt {3+2 \cos (c+d x)} F\left (\frac {1}{2} (c+d x)|\frac {4}{5}\right ) \sqrt {\sec (c+d x)}}{\sqrt {5} d \sqrt {2+3 \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {3943, 2740}
\begin {gather*} \frac {2 \sqrt {2 \cos (c+d x)+3} \sqrt {\sec (c+d x)} F\left (\frac {1}{2} (c+d x)|\frac {4}{5}\right )}{\sqrt {5} d \sqrt {3 \sec (c+d x)+2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2740
Rule 3943
Rubi steps
\begin {align*} \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {2+3 \sec (c+d x)}} \, dx &=\frac {\left (\sqrt {3+2 \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {3+2 \cos (c+d x)}} \, dx}{\sqrt {2+3 \sec (c+d x)}}\\ &=\frac {2 \sqrt {3+2 \cos (c+d x)} F\left (\frac {1}{2} (c+d x)|\frac {4}{5}\right ) \sqrt {\sec (c+d x)}}{\sqrt {5} d \sqrt {2+3 \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 61, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {3+2 \cos (c+d x)} F\left (\frac {1}{2} (c+d x)|\frac {4}{5}\right ) \sqrt {\sec (c+d x)}}{\sqrt {5} d \sqrt {2+3 \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.20, size = 142, normalized size = 2.33
method | result | size |
default | \(-\frac {i \sqrt {10}\, \sqrt {\frac {3+2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2}\, \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right ) \left (\sin ^{2}\left (d x +c \right )\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )}}\, \sqrt {\frac {3+2 \cos \left (d x +c \right )}{\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right ) \sqrt {5}}{5 \sin \left (d x +c \right )}, \sqrt {5}\right ) \sqrt {5}}{5 d \left (2 \left (\cos ^{2}\left (d x +c \right )\right )+\cos \left (d x +c \right )-3\right )}\) | \(142\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.49, size = 47, normalized size = 0.77 \begin {gather*} \frac {-i \, {\rm weierstrassPInverse}\left (8, -4, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right ) + 1\right ) + i \, {\rm weierstrassPInverse}\left (8, -4, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right ) + 1\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\sec {\left (c + d x \right )}}}{\sqrt {3 \sec {\left (c + d x \right )} + 2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}}{\sqrt {\frac {3}{\cos \left (c+d\,x\right )}+2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________